﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace SYSoft.Model.Models.DeviceManage
{
    [SqlSugar.SugarTable("tb_device_alarm")]
    public class DeviceAlarmInfo
    {
        /// <summary>
        /// ID  自增的主键一定要加IsIdentity特性 防止插入失败
        /// </summary>
        [SugarColumn(IsNullable = false, IsPrimaryKey = true)]
        public int Id { get; set; }

        /// <summary>
        /// 设备ID
        /// </summary>
        public int DeviceId { get; set; }


        /// <summary>
        /// 设备描述
        /// </summary>
        public string DeviceDescription { get; set; }


        /// <summary>
        /// 报警代码  类别 （ "设备掉线", "停机", "设备故障", "急停", "其他"） 
        /// </summary>
        public string AlarmCode { get; set; }

        /// <summary>
        /// 报警等级
        /// </summary>
        public int AlarmDegree { get; set; }

        /// <summary>
        /// 报警详细信息
        /// </summary>
        public string AlarmDetailInfo { get; set; }


        /// <summary>
        /// 报警等级
        /// </summary>
        public int AlarmStatus { get; set; }

        /// <summary>
        /// 报警开始时间
        /// </summary>
        public DateTime StartTime { get; set; }


        /// <summary>
        /// 报警结束时间
        /// </summary>
        public DateTime StopTime { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatTime { get; set; } = DateTime.Now;
    }
}
